<?php
$filename="D:/website/word.longsunhd.com/python/{$_POST['host']}.py";
$result['code']=0;
if(!file_exists($filename)){
    $f=fopen($filename,"w");
    fwrite($f,$_POST['source']);
    fclose($f);
    $result['code']=1;
}
echo json_encode($result);